package cn.iocoder.yudao.module.resource.dal.mysql.material;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.resource.dal.dataobject.material.ResourceMaterialDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 资源 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResourceMaterialMapper extends BaseMapperX<ResourceMaterialDO> {

    default ResourceMaterialDO selectByTitle(String title) {
        return selectOne(ResourceMaterialDO::getTitle, title);
    }

}
